package sysmodel

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ UserDepartmentModel = (*customUserDepartmentModel)(nil)

type (
	// UserDepartmentModel is an interface to be customized, add more methods here,
	// and implement the added methods in customUserDepartmentModel.
	UserDepartmentModel interface {
		userDepartmentModel
	}

	customUserDepartmentModel struct {
		*defaultUserDepartmentModel
	}
)

// NewUserDepartmentModel returns a model for the database table.
func NewUserDepartmentModel(conn sqlx.SqlConn) UserDepartmentModel {
	return &customUserDepartmentModel{
		defaultUserDepartmentModel: newUserDepartmentModel(conn),
	}
}
